﻿using System.Collections.Generic;

namespace RssReaderTemplate.Model
{
    public class RssItemContent
    {
        private IEnumerable<ContentFragment> _contents;
        public RssItemContent(IList<ContentFragment> contents)
        {
            _contents = contents;
        }

        public RssItemContent(string itemHtml)
        {
            var model = new ModelBuilder(itemHtml).BuildModel();
            _contents = model;
        }


        public IEnumerable<ContentFragment> Contents
        {
            get
            {
                return _contents;
            }
        }
    }




}
